package com.doge;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.InputProcessor;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.scenes.scene2d.Stage;

public class EndScreen extends Stage implements Screen, InputProcessor
{

	BitmapFont font = new BitmapFont();
	SpriteBatch batch = new SpriteBatch();
	
	String str;
	
	public EndScreen(boolean dead)
	{
		if(dead)
			str = "Dead";
		else
			str = "Victory";
	}
	
	@Override
	public void render(float delta) 
	{
		batch.begin();
		batch.draw(Textures.outline, 0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
		font.draw(batch, str,Gdx.graphics.getWidth()/2 , Gdx.graphics.getHeight()/2);
		batch.end();
	}
	
	public boolean keyUp(int a)
	{
		if(a == Keys.ESCAPE)
			Gdx.app.exit();
		return true;
	}

	@Override
	public void resize(int width, int height) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void show() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void hide() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void pause() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void resume() {
		// TODO Auto-generated method stub
		
	}
	
}
